﻿@{
    var type = Model.GetType();
    var data = type.GetProperty("Data").GetValue(Model, null);
    var template = type.GetProperty("Template").GetValue(Model, null);
    var provider = new GridviewDataProvider();
}
@if (template.EditIsLink)
{
    <a href="@string.Format(template.Edit, provider.Get(data, template.Name))">编辑</a> 
}
else
{
<a onclick="@string.Format(template.Edit, provider.Get(data, template.Name))" href="javascript:void(0);">编辑</a> 
}
|
@if (template.DeleteIsLink)
{
    <a href="@string.Format(template.Delete, provider.Get(data, template.Name))">删除</a> 
}
else
{
<a onclick="@string.Format(template.Delete, provider.Get(data, template.Name))" href="javascript:void(0);">删除</a> 
}
